import * as types from './mutations_types'

import {
    store
} from '../../util/';

module.exports = {
    [types.SHOW_LOADING](state) {
        state.ajax_loading = true;
    },

    [types.HIDE_LOADING](state) {
        state.ajax_loading = false;
    },

    [types.UPDATE_NEW_ORDERS](state, total) {
    	state.newOrders = total;
    },

    [types.UPDATE_EMPTY_BARREL_ORDERS](state, total) {
    	state.emptyBarrelOrders = total;
    },

    [types.UPDATE_DEPOSITE_ORDERS](state, total) {
        state.depositeOrders = total;
    }
};